﻿using JinfuyuanProject.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JinfuyuanProject.Repository.Interface
{
    public interface IRoleRepository
    {
       
        // 获取角色列表
        IQueryable<Role> GetList();

        // 根据 SQL 查询语句查询角色
        //IEnumerable<T> QueryBySql<T>(string sql);

        Role GetModel(int Id);

        bool Delete(Role Role);

        int Insert(Role Role);

        bool Update(Role Role);
        Task<Role> GetRoleByIdAsync(int roleId);
    }
}
